package com.ctyon.watchmanager.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ctyon.watchmanager.R;
import com.ctyon.watchmanager.databinding.FragmentMessageBinding;
import com.ctyon.watchmanager.present.MessagePresenter;
import com.ctyon.watchmanager.ui.BaseFragment;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;

/**
 * CreateDate：19-6-25 on 上午9:14
 * Describe:
 * Coder: lee
 */
public class MessageFragment extends BaseFragment {

    public static final String TAG = "MessageFragment";

    private FragmentMessageBinding mBinding;

    public static MessageFragment newInstance() {
        final MessageFragment fragment = new MessageFragment();
        final Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        mBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_message, container, false);
        mBinding.setMessagePresenter(messagePresenter);

        return mBinding.getRoot();

    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }

    private final MessagePresenter messagePresenter = new MessagePresenter() {

        @Override
        public void onSosClick() {

        }

        @Override
        public void onBatteryClick() {

        }
    };

}
